<template>
	<view>
		<fa-navbar :title="pageInfo.title" ref="navbar"></fa-navbar>
		<view class="content">
			<view class="u-p-30 u-border-bottom">
				<view class="u-font-40"><text v-text="pageInfo.title"></text></view>
			</view>
			<view class="u-p-30 u-line-height">
				<u-parse :html="pageInfo.content" :tagStyle="vuex_parse_style" :domain="vuex_config.upload ? vuex_config.upload.cdnurl : ''"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'详情',
				pageInfo:[],
			};
		},
		async onLoad(e) {
			let pageId = e.pageId || '';
			let res = await this.$api.page({
				params:{id: pageId}
			});
			if (!res.code) {
				uni.$u.toast(res.msg);
				return;
			}
			this.pageInfo = res.data;
		},
		methods:{
			
		},
	}
</script>

<style lang="less">
	.content{
		padding-top: 178rpx;
	}
</style>
